<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 15. < 函数基础练习 > 利用getRandom函数每一秒输出一个随机数字
        function getRandom() {
            return Math.round(Math.random() * 100);
        }
        
        // ⭐
        setInterval(() => {
            console.log(getRandom());
        }, 1000)
    </script>
</body>
</html>